﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Autocentro.UI
{
    public partial class FrmMenuAdministrador : Form
    {
        public FrmMenuAdministrador()
        {
            InitializeComponent();
            //this.BuildUp();
        }

        private void buscarMarcaToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var frmMarca = new FrmMarca();
            frmMarca.MdiParent = this;
            frmMarca.Show();
        }

        private void crearMarcaToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var frmMarca = new FrmMttoMarca();
            frmMarca.AddMarca();
            frmMarca.MdiParent = this;
            frmMarca.Show();
        }

        private void buscarClienteToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var frmCliente = new FrmCliente();
            frmCliente.MdiParent = this;
            frmCliente.Show();
        }

        private void crearClienteToolStripMenuItem_Click(object sender, EventArgs e)
        {

            FrmMttoCliente frm = new FrmMttoCliente();
            frm.AddCliente();
            frm.MdiParent = this;
            frm.Show();

        }

        private void buscarProductoToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var frmProducto = new FrmProducto();
            frmProducto.MdiParent = this;
            frmProducto.Show();
        }

        private void registrarProductoToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var frmProducto = new FrmMttProducto();
            frmProducto.AddProducto();
            frmProducto.MdiParent = this;
            frmProducto.Show();
        }

        private void buscarProveedorToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var frmProveedor = new FrmProveedor();
            frmProveedor.MdiParent = this;
            frmProveedor.Show();
        }

        private void registrarProveedorToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var frmProducto = new FrmMttProveedor();
            frmProducto.AddProveedor();
            frmProducto.MdiParent = this;
            frmProducto.Show();
        }

        private void buscarServicioToolStripMenuItem_Click(object sender, EventArgs e)
        {

        }

        private void registrarServicioToolStripMenuItem_Click(object sender, EventArgs e)
        {

        }

        private void buscarTrabajadorToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var frmTrabajador = new FrmTrabajador();
            frmTrabajador.MdiParent = this;
            frmTrabajador.Show();
        }

        private void registrarTrabajadorToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var frmTrabajador = new FrmMttTrabajador();
            frmTrabajador.AddTrabajador();
            frmTrabajador.MdiParent = this;
            frmTrabajador.Show();
        }

        private void buscarVehiculoToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var frmVehiculo = new FrmVehiculo();
            frmVehiculo.MdiParent = this;
            frmVehiculo.Show();
        }

        private void registrarVehiculoToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var frmVehiculo = new FrmMttoVehiculo();
            frmVehiculo.AddVehiculo();
            frmVehiculo.MdiParent = this;
            frmVehiculo.Show();
        }

        private void buscarVentaToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var frmVenta = new FrmVenta();
            frmVenta.MdiParent = this;
            frmVenta.Show();
        }

        private void registrarVentaToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var frmMttVenta = new FrmMttVenta();
            frmMttVenta.AddVenta();
            frmMttVenta.MdiParent = this;
            frmMttVenta.Show();
        }

        private void buscarProformaToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var frmProforma = new FrmProforma();
            frmProforma.MdiParent = this;
            frmProforma.Show();
        }

        private void registrarProformaToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var frmMttProforma = new FrmMttProforma();
            frmMttProforma.AddProfora();
            frmMttProforma.MdiParent = this;
            frmMttProforma.Show();
        }

        private void registroServicioToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var frmServico = new FrmMttServicio();
            frmServico.AddServicio();
            frmServico.MdiParent = this;
            frmServico.Show();
        }

        private void radRibbonBar1_Click(object sender, EventArgs e)
        {

        }

        private void cerrarSesion_Click(object sender, EventArgs e)
        {
            //retorna al login
        }

        private void salir_Click(object sender, EventArgs e)
        {
            Application.Exit();
        }

        private void busMarca_Click(object sender, EventArgs e)
        {
            FrmMarca frm = new FrmMarca();
            frm.MdiParent = this;
            frm.Show();
            radRibbonBar1.Expanded = false;
        }

        private void regMarca_Click(object sender, EventArgs e)
        {
            FrmMttoMarca frm = new FrmMttoMarca();
            frm.AddMarca();
            frm.MdiParent = this;
            frm.Show();
            radRibbonBar1.Expanded = false;
        }

        private void busCliente_Click(object sender, EventArgs e)
        {
            FrmCliente frm = new FrmCliente();
            frm.MdiParent = this;
            frm.Show();
            radRibbonBar1.Expanded = false;
        }

        private void regCliente_Click(object sender, EventArgs e)
        {
            FrmMttoCliente frm = new FrmMttoCliente();
            frm.AddCliente();
            frm.MdiParent = this;
            frm.Show();
            radRibbonBar1.Expanded = false;
        }

        private void busProdServ_Click(object sender, EventArgs e)
        {
            FrmProducto frm = new FrmProducto();
            frm.MdiParent = this;
            frm.Show();
            radRibbonBar1.Expanded = false;
        }

        private void regProdServ_Click(object sender, EventArgs e)
        {
            FrmMttProducto frm = new FrmMttProducto();
            frm.AddProducto();
            frm.MdiParent = this;
            frm.Show();
            radRibbonBar1.Expanded = false;
        }

        private void radSaveService_Click(object sender, EventArgs e)
        {
            FrmMttServicio frm = new FrmMttServicio();
            frm.AddServicio();
            frm.MdiParent = this;
            frm.Show();
            radRibbonBar1.Expanded = false;
        }

        private void busProveedor_Click(object sender, EventArgs e)
        {
            FrmProveedor frm = new FrmProveedor();
            frm.MdiParent = this;
            frm.Show();
            radRibbonBar1.Expanded = false;
        }

        private void regProveedor_Click(object sender, EventArgs e)
        {
            FrmMttProveedor frm = new FrmMttProveedor();
            frm.AddProveedor();
            frm.MdiParent = this;
            frm.Show();
            radRibbonBar1.Expanded = false;
        }

        private void busTrabajador_Click(object sender, EventArgs e)
        {
            FrmTrabajador frm = new FrmTrabajador();
            frm.MdiParent = this;
            frm.Show();
            radRibbonBar1.Expanded = false;
        }

        private void regTrabajador_Click(object sender, EventArgs e)
        {
            FrmMttTrabajador frm = new FrmMttTrabajador();
            frm.AddTrabajador();
            frm.MdiParent = this;
            frm.Show();
            radRibbonBar1.Expanded = false;
        }

        private void busVehiculo_Click(object sender, EventArgs e)
        {
            FrmVehiculo frm = new FrmVehiculo();
            frm.MdiParent = this;
            frm.Show();
            radRibbonBar1.Expanded = false;
        }

        private void regVehiculo_Click(object sender, EventArgs e)
        {
            FrmMttoVehiculo frm = new FrmMttoVehiculo();
            frm.AddVehiculo();
            frm.MdiParent = this;
            frm.Show();
            radRibbonBar1.Expanded = false;
        }

        private void busVenta_Click(object sender, EventArgs e)
        {
            FrmVenta frm = new FrmVenta();
            frm.MdiParent = this;
            frm.Show();
            radRibbonBar1.Expanded = false;
        }

        private void regVenta_Click(object sender, EventArgs e)
        {
            FrmMttVenta frm = new FrmMttVenta();
            frm.AddVenta();
            frm.MdiParent = this;
            frm.Show();
            radRibbonBar1.Expanded = false;
        }

        private void busProforma_Click(object sender, EventArgs e)
        {
            FrmProforma frm = new FrmProforma();
            frm.MdiParent = this;
            frm.Show();
            radRibbonBar1.Expanded = false;
        }

        private void regProforma_Click(object sender, EventArgs e)
        {
            FrmMttProforma frm = new FrmMttProforma();
            frm.AddProfora();
            frm.MdiParent = this;
            frm.Show();
            radRibbonBar1.Expanded = false;
        }

        private void busCompra_Click(object sender, EventArgs e)
        {
            var frmCompra = new FrmCompra();
            frmCompra.MdiParent = this;
            frmCompra.Show();
            radRibbonBar1.Expanded = false;
        }

        private void regCompra_Click(object sender, EventArgs e)
        {
            var frmMttCompra = new FrmMttCompra();
            frmMttCompra.AddCompra();
            frmMttCompra.MdiParent = this;
            frmMttCompra.Show();
            radRibbonBar1.Expanded = false;
        }

        private void busUnidadMedida_Click(object sender, EventArgs e)
        {
            var frmUnidad = new FrmUnidaMedida();
            frmUnidad.MdiParent = this;
            frmUnidad.Show();
            radRibbonBar1.Expanded = false;
        }

        private void regUnidaMedida_Click(object sender, EventArgs e)
        {
            var frmMttUnidad = new FrmMttUnidadMedida();
            frmMttUnidad.AddUnidadMedida();
            frmMttUnidad.MdiParent = this;
            frmMttUnidad.Show();
            radRibbonBar1.Expanded = false;
        }

        private void BuscarradButtonElement_Click(object sender, EventArgs e)
        {

        }

        private void busCartillaPrecio_Click(object sender, EventArgs e)
        {
            var frm = new FrmCartillaPrecio();
            frm.MdiParent = this;
            frm.Show();
            radRibbonBar1.Expanded = false;
        }

        private void RBtnBuscarVehiculo_Click(object sender, EventArgs e)
        {
            var frm = new FrmVehiculo();
            frm.MdiParent = this;
            frm.Show();
            radRibbonBar1.Expanded = false;
        }

        private void RBtnNuevoVehiculo_Click(object sender, EventArgs e)
        {
            var frm = new FrmMttoVehiculo();
            frm.AddVehiculo();
            frm.MdiParent = this;
            frm.Show();
            radRibbonBar1.Expanded = false;
        }

        private void RBuscarServProg_Click(object sender, EventArgs e)
        {
            var frm = new FrmServicioProgramado();
            frm.MdiParent = this;
            frm.Show();
            radRibbonBar1.Expanded = false;
        }

     

       
        
    }
}
